import { http,httpGet } from '@/appBase/request';
import { toDataForSys } from '@/appBase/utils';

// 查询菜单列表
export function listMenu(query) {
  return http({
    url: '/system/menu/list',
    method: 'get',
    params: query
  })
}

// 根据角色ID查询菜单下拉树结构
export function roleMenuTreeselect(roleId) {
  return httpGet('/system/menu/roleMenuTreeselect/' + roleId).then((result) => toDataForSys(result));
}
